clear; clc;

R=120;
C=33e-12;
tau=R*C;

fprintf('tau = %f ns', tau*1e9);

T=tau/100;
t=0:T:3*tau;
S=10;
U(1)=0;

for k=2:length(t)
    U(k)=(S+(tau/T)*U(k-1))/(tau/T+1);
end;

figure(1);
plot(t,U),grid;
